<?

class djnodj_scraper extends BlogScraper
{
    function __construct()
    {
        parent::__construct('djnodj');
    }
    
    
    function getPostLinks()
    {
        $text = $this->xpath->query("//div[@class='post-title']//a");

        return $text;
    }
    
}

class djnodj_post_scraper extends PostScraper
{
    function getDate()
    {
        $text = $this->xpath->query("//div[@class='date']")->item(0)->nodeValue; 
        $text = date('Y-m-d', strtotime(str_replace('|', '', $text)));
        return $text;
    }
    
    
    function getTitle()
    {
        $text = $this->xpath->query("//div[@class='post-title']")->item(0)->nodeValue; 

        return $text;
    }
    
    function prepareTrack($track)
    {
        $track['name'] = str_replace('(don lowed)', '', $track['name']);
        $track['name'] = str_replace('(download)', '', $track['name']);
        
        $track['song'] = str_replace('(don lowed)', '', $track['song']);
        $track['song'] = str_replace('(download)', '', $track['song']);
        return $track;
    }
}

?>